<template>
  <!-- 个人中心 -->
  <div class="person">
    <Head :hasSearch="false"></Head>
    <div class="person-center">
      <el-tabs tab-position="left" class="">
        <el-tab-pane label="我的资料" class="tab-pane">
          <div class="my-order">我的资料</div>
          <PIM></PIM>
        </el-tab-pane>
        <el-tab-pane label="我的订单" class="tab-pane">
          <div class="my-order">我的订单</div>
          <Order />
        </el-tab-pane>
        <el-tab-pane label="地址管理" class="tab-pane">
          <div class="my-order">地址管理</div>
          <Adder></Adder>
        </el-tab-pane>
        <el-tab-pane label="我的评论" class="tab-pane">
          <div class="my-order">我的评论</div>
          <MyComment></MyComment>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import Head from '@/components/Head.vue'
import { Edit } from '@element-plus/icons-vue'
// import PIM from '@/components/PIM.vue'
import PIM from '../components/PIM.vue'
import Adder from '../components/Adder.vue'
import Order from '../components/Order.vue'
import MyComment from '../components/MyComment.vue'

const activeName = ref('all')
const handleClick = (tab, event) => {
  console.log(tab, event)
}
</script>

<style lang="less" scoped>
.person {
  background: #ebe8eb;
  height: 100vh !important;
}
.person-center {
  margin: 30px auto;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  width: 80%;
  .my-order {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
  }
  .adder {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    margin: 20px 0;
  }

  .tab-pane {
    padding: 0 20px;
    padding-left: 40px;
  }

  .el-tabs--left,
  .el-tabs--right {
    overflow: visible;
  }
}
</style>
